//
//  FMDBModel.h
//  TeamProject_Travel
//
//  Created by lanou3g on 16/4/5.
//  Copyright © 2016年 lanou3g. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AccountModel.h"

@interface FMDBModel : NSObject

+ (FMDBModel *)defaultFMDBModel;

// 插入
- (void)insertAccount:(AccountModel *)student;

// 拿到所有数据
- (NSMutableArray *)getAllAccount;

// 根据唯一标示获取对象
-(AccountModel *)getOneAccountWithName:(NSInteger)accountName;

// 根据标识删除对象
-(void)deleteFriendWithAccountName:(NSString *)accountName;

// 删除所有对象
- (void)deleteAllAccount;

- (void)UpdataAccountCategory:(NSString *)oldCategory withNewCategory:(NSString *)newCategory UpdataAccountRests:(NSString *)oldRests withNewRests:(NSString *)newRests UpdataAccountAddress:(NSString *)oldAddress withNewAddress:(NSString *)newAddress UpdataAccountTime:(NSString *)oldTime withNewTime:(NSString *)newTime UpdataAccountType:(NSString *)oldType withNewType:(NSString *)newType UpdataAccountTotal:(NSString *)oldTotal withNewTotal:(NSString *)newTotal UpdataAccountConsumption:(NSString *)oldConsumption withNewConsumption:(NSString *)newConsumption;


@end
